package com.bookshop.sale.logic;

import com.bookshop.book.logic.Book;
import com.bookshop.book.logic.BookManagement;

public class ShowBookOfCart {
	
	public Book[] execute(String[] pBookID){
		BookManagement bm = new BookManagement();
		Book[] books = new Book[pBookID.length];
		for (int i = 0; i < pBookID.length; i++) {
			books[i] = bm.searchByID(pBookID[i]);
		}
		return books;
	}
	
}
